<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- DOC - TP XSLT -->
<!--nutrition2trie.xsl -->
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" indent="yes"	encoding="UTF-8" 
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
		
<!-- Produire une page XHTML -->
	<xsl:template match="nutrition">
		<html>
			<head>
				<title>Question 4 XSLT</title>
			</head>
			<body>
				<h1>Question 4-2 - binome ROMAND BERLON </h1>
				<table border="1">
					<thead>
						<tr>
							<th>Plat</th>
							<th>Calories</th>
							<th>Gras</th>
							<th>Glucides</th>
							<th>Proteines</th>
						</tr>
    <!-- INSERER VOTRE EXPRESSION XPath dans le select="..." -->
	<!-- Exemple : afficher le premier site --> 
					</thead>
					<tbody>
						<xsl:for-each select="plat">
							<xsl:sort select="@nom" />
							<tr>
								<td><xsl:value-of select="@nom"/></td>
								<td><xsl:value-of select="@calories"/></td>
								<td><xsl:value-of select="@gras"/> %</td>
								<td><xsl:value-of select="@glucides"/> %</td>
								<td><xsl:value-of select="@proteines"/> %</td>
							</tr>
						</xsl:for-each>
					</tbody>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>